package org.itt.cp.gdc;

import java.util.Date;
import java.util.TreeMap;

import org.itt.ap.PECMap;
import org.itt.ap.Source;

public class GdC implements Source {
	String callerId;
	String callerCountry;
	String callerFiscalcode;
	String callerName;
	String callerSurname;
	String compressedDoc;
	String domain;
	int id;
	TreeMap<Integer, Source> map;
	String operation;
	Date recordTime;
	int result;
	String serviceNS;
	
	public String getCallerId() {
		return callerId;
	}
	
	public String getCallerCountry() {
		return callerCountry;
	}

	public String getCallerFiscalcode() {
		return callerFiscalcode;
	}

	public String getCallerName() {
		return callerName;
	}

	public String getCallerSurname() {
		return callerSurname;
	}

	public String getCompressedDoc() {
		return compressedDoc;
	}

	public String getDomain() {
		return domain;
	}

	public int getId() {
		return id;
	}

	public TreeMap<Integer, Source> getMap() {
		// TODO Auto-generated method stub
		return map;
	}

	public String getOperation() {
		return operation;
	}

	public Date getRecordTime() {
		return recordTime;
	}

	public String getServiceNS() {
		return serviceNS;
	}

	public int isResult() {
		return result;
	}

	public void setCallerId(String callerId) {
		this.callerId = callerId;
	}

	public void setCallerCountry(String callerCountry) {
		if(callerCountry.isEmpty()) {
			callerCountry = "IT";
		}
		
		this.callerCountry = callerCountry;
	}

	public void setCallerFiscalcode(String callerFiscalcode) {
		if(callerFiscalcode.isEmpty()) {
			callerFiscalcode = this.callerId;
		}
		
		this.callerFiscalcode = callerFiscalcode;
	}

	public void setCallerName(String callerName) {
		if(callerName.isEmpty()) {
			callerName = this.callerId;
		} 
		
		this.callerName = callerName;
	}

	public void setCallerSurname(String callerSurname) {
		if(callerSurname.isEmpty()) {
			callerSurname = this.callerId;
		} 
		
		this.callerSurname = callerSurname;
	}

	public void setCompressedDoc(String compressedDoc) {
		this.compressedDoc = compressedDoc;
	}

	public void setDomain(String domain) {
		this.domain = domain;
	}

	public void setId(int id) {
		this.id = id;
	}

	@Override
	public void setMap(TreeMap<Integer, Source> map) {
		// TODO Auto-generated method stub
		this.map = map;
	}

	public void setOperation(String operation) {
		this.operation = operation;
	}

	public void setRecordTime(Date recordTime) {
		this.recordTime = recordTime;
	}

	public void setResult(int result) {
		this.result = result;
	}

	public void setServiceNS(String serviceNS) {
		this.serviceNS = serviceNS;
	}

	@Override
	public void setPECMap(PECMap map) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public PECMap getPECMap() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int compareTo(Object o) {
		// TODO Auto-generated method stub
		return 0;
	}
}
